package org.sn.jdish.interview.thoughtworks.purchase;

import java.util.Scanner;

/**
 * 程序入口
 */
public class MerchandiseMain {

	/**
	 * 程序入口
	 * 
	 * @param args
	 * @throws Exception
	 */
	public static void main(String[] args) throws Exception {
		System.out.print("输入数据文件路径：\n");
		Scanner scan = new Scanner(System.in);
		String merchandiseFile = scan.nextLine();
		System.out.println("数据文件路径：" + merchandiseFile);
		System.out.println("==================== 以下为处理程序 ====================");
		MerchandiseService.init();
		MerchandiseService.record(merchandiseFile);
		MerchandiseService.genReport();
	}

}
